package com.bluestone.run;

import java.util.HashMap;
import java.util.List;

import com.bluestone.assertor.AssertorFilter;
import com.bluestone.assertor.IAssertor;
import com.bluestone.config.AssertorConfig;
import com.bluestone.config.BluestoneConfig;
import com.bluestone.config.ConfigUtil;
import com.bluestone.config.FilterConfig;
import com.bluestone.context.ConfigContext;
import com.bluestone.context.ProjectContext;
import com.bluestone.scripts.Project;
import com.bluestone.util.Util;

public class Luster {
	
	private HashMap assertors = new HashMap();
	private ProjectController projectController = new ProjectController();

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		String file = "./scripts/aivr.xml";
		if (args.length > 0) {
			file = args[0];
		}
		Luster luster = new Luster();
		try{
			luster.run(file);
		}catch(Exception me){
			me.printStackTrace();
		}
		luster.stop();
		System.exit(0);

	}

	public void run(String file){		
        ProjectContext projectContext = ProjectContext.getInstance(file);
        projectController.execute(projectContext);
	
	}
		
	public void stop(){

	}

}
